import request from '@/utils/request'


export default{
    // 管理员列表
    list(page, size, searchMap) {
        return request({
            url: `manage/company/index/lists?page=${page}&size=${size}`,
            method: 'post',
            data:searchMap
        })
    },
    chargeRules(page,size){
        return request({
            url: `manage/company/rule/lists?page=${page}&size=${size}`,
            method: 'get'
        })
    },
    chargeRulesEdit(data){
        return request({
            url:`manage/company/rule/edit`,
            data,
            method: 'post'
        })
    },
    // 协议折扣
    changeTreatyRebate(data){
        return request({
            url:`manage/company/index/changeTreatyRebate`,
            data,
            method: 'post'
        })
    },
    //充送规则删除 
    ruleDelete(data){
        return request({
            url:`/manage/company/rule/delete`,
            data,
            method: 'post'
        })
    }
}
